<include file="Public/header" title="{$category.seo_title}" keywords="{$category.seo_keywords}" description="{$category.seo_description}" />

<!-- MAIN -->
<main class="content-wrapper page-blog-column">
	<section class="content-header" style="background-image: url(__TMPL__Public/assets/images/home-bg1.jpg);">
		<div class="container">
			<h1>新闻资讯栏目页</h1>
			<p>Find blogs you like.</p>
		</div>
	</section>
	
	<section class="content-body">
		<div class="container">
			<div class="row">
				<div class="col-sm-9">
					<div class="">
						<ul>
							<content id="vo" table-name="category" where="pid=$CID" order="id desc">
                            <li class="category-item">
                            	<div class="category-title with-border-bottom clearfix">
	                            	<h3 class="">{$vo.name}</h3>
	                            	<a href="{$vo.url}" class="category-more">更多>></a>
                            	</div>
                            	<div class="post-list">
									<content id="vo" table-name="post" where="cid=$vo[id] and status=1" order="id desc" limit="4">
									<article class="post">
										<div class="row">
											<div class="col-sm-3 col-xs-3">
												<div class="post-img">
													<a class="zoom-img" href="{$vo.url}">
														<if condition="empty($vo.thumb)">
															<img src="__TMPL__Public/assets/images/post/post_thumb.jpg" class="img-responsive" />
														<else />
															<img src="__ROOT__/{$vo.thumb}" class="img-responsive" />
														</if>
													</a>
												</div>
											</div>
											<div class="col-sm-9 col-xs-9">
												<div class="post-header">
													<h3 class="post-title">
														<a href="{$vo.url}">
															{$vo.title}
														</a>
													</h3>
													<div class="post-meta">
														<i class="fa fa-clock-o"></i>&nbsp;<span>{$vo.update_time|strtotime|date='Y-m-d h:i',###}</span>&nbsp;&nbsp;
														<i class="fa fa-user"></i>&nbsp;<span>{$vo.author}</span>&nbsp;&nbsp;
														<i class="fa fa-eye"></i>&nbsp;<span>{$vo.view_count}</span>&nbsp;人浏览
													</div>
												</div>
												<div class="post-body">
													<div class="post-summary">
														<a href="{$vo.url}">
															{$vo.summary|msubstr=0,256}
														</a>
													</div>
												</div>
											</div>
										</div>
									</article>
									</content>
								</div>
                            </li>
                            </content>
                        </ul>
					</div>
				</div>
				
				<div class="col-sm-3">
					<div class="sidebar-item latest-blog-post">
						<h3 class="with-border-bottom">最新发布</h3>
						<ul class="media-list">
							<content id="vo" table-name="post" where="cid in ($CF_SUB_NEWS_CIDS) and status=1" order="id desc" limit="4">
							<li class="media">
	                            <a class="media-left" href="{$vo.url}">
				            	<if condition="empty($vo['thumb'])"> 
									<img src="__TMPL__Public/assets/images/post/post_thumb.jpg" class="media-object" alt="{$vo.title}" />
								<else />
									<img src="__ROOT__/{$vo.thumb}" class="media-object" alt="{$vo.title}" />
								</if>
	                            </a>
	                            <div class="media-body">
	                                <h5 class="media-heading">
	                                	<a href="{$vo.url}">
	                                		{$vo.title}
	                                	</a>
	                                </h5>
									<!-- <span>{$vo.date}</span> -->
	                            </div>
							</li>
			        		</content>
						</ul>
					</div>
				</div>
			</div>
		</div>
	</section>
</main>
<!-- /MAIN -->

<script type="text/javascript">
(function() {
})();
</script>

<include file="Public/footer" />
